﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Citizens.aspx.cs" Inherits="WebApp.secure_pages.citizens" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   
    <p>
        A list of Citizens available to the doctor
    </p>

     <asp:GridView ID="GridView1" runat="server" 
        DataKeyNames="CitizenId" DataSourceID="EntityDataSource1" AllowPaging="True" 
        AllowSorting="True" Height="164px" AutoGenerateColumns="False" 
        onselectedindexchanged="GridView1_SelectedIndexChanged" >
        <Columns>
            <asp:CommandField ShowEditButton="True"  ShowSelectButton="True" ButtonType="Button" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
            <asp:BoundField DataField="Email" HeaderText="Email" SortExpression="Email" />
            <asp:BoundField DataField="Phone" HeaderText="Phone" SortExpression="Phone" />
        </Columns>
    </asp:GridView>

 <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
        ConnectionString="name=F11ITNET2Gr7Entities" 
        DefaultContainerName="F11ITNET2Gr7Entities" EnableFlattening="False" 
        EntitySetName="Citizen"  EnableDelete="True" EnableUpdate="True" EnableInsert="true" >
    </asp:EntityDataSource>


</asp:Content>
